//
//  PeopleServiceCell1.m
//  Cunli
//
//  Created by ZhanyaaLi on 15/12/7.
//  Copyright © 2015年 lilubin. All rights reserved.
//

#import "PeopleServiceCell1.h"
#import "UIColor+expanded.h"

@implementation PeopleServiceCell1

- (void)awakeFromNib {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    tap.numberOfTapsRequired = 1;
    tap.numberOfTouchesRequired = 1;
    [self.contentView addGestureRecognizer:tap];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.contentView setBackgroundColor:[UIColor colorWithHexString:@"0xf6f6f6"]];
    UIColor *titleLabelColor = [UIColor colorWithHexString:@"0x333333"];
    UIColor *detailLabelColor = [UIColor colorWithHexString:@"0x777777"];
    [_leftTitleLabel setTextColor:titleLabelColor];
    [_rightTitleLabel setTextColor:titleLabelColor];
    [_leftDetailLabel setTextColor:detailLabelColor];
    [_rightDetailLabel setTextColor:detailLabelColor];
}

- (void)tapAction:(UITapGestureRecognizer *)tap
{
    CGPoint touchPoint = [tap locationInView:self.contentView];
    NSLog(@">>>TouchPoint:%@", NSStringFromCGPoint(touchPoint));
    _TapTouch(touchPoint.x);
}

@end
